BEGIN { incomment = inquote =  0;}

{
if (match($0, /['{}]/ ))
    {
    line = $0;
    do
	{
	item = substr(line, RSTART, 1);
	if (incomment)
	    {
	    if (item == "}" )
		incomment = 0;
	    }
	else if (inquote)
	    {
	    if (item == "'")
		inquote = 0;
	    }
	else
	    {
	    printf("%s", substr(line,1,RSTART-1));
	    if (item == "'")
		inquote = 1;
	    else if (item == "{")
		incomment = 1;
	    }
	line = substr(line, RSTART + 1, 1000);
	}
    while (match(line, /['{}]/ ));
    if ( ! incomment && ! inquote )
	print line;
    }
else
    if ( ! (incomment  || inquote) )
	print $0;
}
